package com.sino.operation.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sino.operation.entity.SysPriority;
import com.sino.operation.entity.SysTeller;
import com.sino.operation.mapper.SysPriorityMapper;
import com.sino.operation.mapper.SysTellerMapper;
import com.sino.operation.service.SysPriorityService;
import com.sino.operation.service.SysTellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 优先级表 服务实现类
 * </p>
 *
 * @author admin
 * @since 2021-10-07
 */
@Service
public class SysPriorityServiceImpl extends ServiceImpl<SysPriorityMapper, SysPriority> implements SysPriorityService {

    @Autowired
    private SysPriorityMapper sysPriorityMapper;
    @Override
    public List<SysPriority> selectList(Map<String,String> map) {
        QueryWrapper<SysPriority> wrapper = new QueryWrapper<>();
        String transTypeCode = map.get("transTypeCode");//交易类型编码
        if (!transTypeCode.isEmpty()){
            wrapper.eq("TRANS_TYPE_CODE",transTypeCode);
        }
        List<SysPriority> sysPriorities = sysPriorityMapper.selectList(wrapper);
        return sysPriorities;
    }
}
